import Vue from 'vue'
import Router from 'vue-router'
import Home from 'views/Home'
import Mine from 'views/Mine'
import LoginRegister from 'views/LoginRegister'
import Error404 from 'views/Error404'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [{
      path: '/',
      redirect: '/home'
    },
    {
      path:'/home',
      name:'home',
      component:Home
    },
    {
      path:'/mine',
      name:'mine',
      component:Mine
    },
    {
      path:'/login',
      name:'login',
      component: LoginRegister
    }
  ]
})
